projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7dc9afe
)
[XEND] Fix hidden vcpu state when calling xm-list
author
Alastair Tse
<atse@xensource.com>
Thu, 30 Nov 2006 14:46:45 +0000
(14:46 +0000)
committer
Alastair Tse
<atse@xensource.com>
Thu, 30 Nov 2006 14:46:45 +0000
(14:46 +0000)
Stores the vcpus number in xenstore so it is preserved on xend
restart.
Signed-off-by: Alastair Tse <atse@xensource.com>
tools/python/xen/xend/XendDomainInfo.py
patch
|
blob
|
history
diff --git
a/tools/python/xen/xend/XendDomainInfo.py
b/tools/python/xen/xend/XendDomainInfo.py
index fdf5dc4d71e86feaa8172c6ab2ffc57d21d18df2..9581a9621e7506fb81d349c2096f46b0cc4905ac 100644
(file)
--- a/
tools/python/xen/xend/XendDomainInfo.py
+++ b/
tools/python/xen/xend/XendDomainInfo.py
@@
-847,7
+847,9
@@
class XendDomainInfo:
def setVCpuCount(self, vcpus):
self.info['vcpu_avail'] = (1 << vcpus) - 1
+ self.info['vcpus_number'] = vcpus
self.storeVm('vcpu_avail', self.info['vcpu_avail'])
+ self.storeVm('vcpus', self.info['vcpus_number'])
self._writeDom(self._vcpuDomDetails())
def getLabel(self):